<?php
namespace Home\Controller;
use Think\Controller;
class AboutController extends Controller {
    public function showlist()
    {

        //获取传递过过来的cate_id
        $cate_id = $_GET['cate_id'];
        $blog_id = $_GET['blog_id'];
        //根据cate_id 获取指定分类的博文信息
        $info=D('Blog')
            ->where(array('cate_id'=>$cate_id))
            ->select();
        $this->assign('blog_info',$info);
        //获取分类信息
        $cate_info = D('Cate')->select();
        $this->assign('cate_info',$cate_info);
        $this->display();
    }
}